/* This file is currently associated to an HTML file of the same name and is drawing content from it.  Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file. */

function DisplayTemplate_bbd34e8b192048b9a66096bab5a37d23(ctx) {
  var ms_outHtml=[];
  var cachePreviousTemplateData = ctx['DisplayTemplateData'];
  ctx['DisplayTemplateData'] = new Object();
  DisplayTemplate_bbd34e8b192048b9a66096bab5a37d23.DisplayTemplateData = ctx['DisplayTemplateData'];

  ctx['DisplayTemplateData']['TemplateUrl']='~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomArticlePage_Carousel.js';
  ctx['DisplayTemplateData']['TemplateType']='Item';
  ctx['DisplayTemplateData']['TargetControlType']=['SearchResults'];
  this.DisplayTemplateData = ctx['DisplayTemplateData'];

  ctx['DisplayTemplateData']['ManagedPropertyMapping']={'Title':['Title'], 'Path':['Path'], 'BannerImage':['BannerImageOWSIMGE'], 'BannerTitle':['BannerTitleOWSTEXT'], 'BannerSubtitle':['BannerSubtitleOWSTEXT']};
  var cachePreviousItemValuesFunction = ctx['ItemValues'];
  ctx['ItemValues'] = function(slotOrPropName) {
    return Srch.ValueInfo.getCachedCtxItemValue(ctx, slotOrPropName)
};

ms_outHtml.push('',''
); 
        if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
            var id = ctx.ClientControl.get_nextUniqueId();
            var encodedId = $htmlEncode(id);
            var title = ctx.CurrentItem.Title;
            var path = ctx.CurrentItem.Path;

            var bannerImage = $getItemValue(ctx, "BannerImage");
            var bannerTitle = $getItemValue(ctx, "BannerTitle");
            var bannerSubtitle = $getItemValue(ctx, "BannerSubtitle");
ms_outHtml.push(''
,''
,'            <div class="item">                '
,'                <img src="', bannerImage ,'" />'
); 
                if (bannerTitle != null && bannerTitle != '' && bannerTitle != 'undefined') {
ms_outHtml.push(''
,'                <div class="carousel-caption">'
,'                    <h3>', bannerTitle ,'</h3>'
); 
                    if (bannerSubtitle != null && bannerSubtitle != '' && bannerSubtitle != 'undefined') {
ms_outHtml.push(''
,'                    <p>', bannerSubtitle ,'</p>'
); 
                    }
ms_outHtml.push(''
,'                </div>'
); 
                }
        }
ms_outHtml.push(''
,'            </div>'
,'    '
);

  ctx['ItemValues'] = cachePreviousItemValuesFunction;
  ctx['DisplayTemplateData'] = cachePreviousTemplateData;
  return ms_outHtml.join('');
}
function RegisterTemplate_bbd34e8b192048b9a66096bab5a37d23() {

if ("undefined" != typeof (Srch) &&"undefined" != typeof (Srch.U) &&typeof(Srch.U.registerRenderTemplateByName) == "function") {
  Srch.U.registerRenderTemplateByName("Item_CustomArticlePage_Carousel", DisplayTemplate_bbd34e8b192048b9a66096bab5a37d23);
}

if ("undefined" != typeof (Srch) &&"undefined" != typeof (Srch.U) &&typeof(Srch.U.registerRenderTemplateByName) == "function") {
  Srch.U.registerRenderTemplateByName("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomArticlePage_Carousel.js", DisplayTemplate_bbd34e8b192048b9a66096bab5a37d23);
}

}
RegisterTemplate_bbd34e8b192048b9a66096bab5a37d23();
if (typeof(RegisterModuleInit) == "function" && typeof(Srch.U.replaceUrlTokens) == "function") {
  RegisterModuleInit(Srch.U.replaceUrlTokens("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomArticlePage_Carousel.js"), RegisterTemplate_bbd34e8b192048b9a66096bab5a37d23);
}